@import '../../../core/index.less';

.orin-sw-repopover-root {
    position: relative;
    outline: none;

    .orin-sw-repopover-wrapper {
        position: absolute;
        left: auto;
        right: auto;
        top: 14 / @remScale;
        padding-top: 7 / @remScale;
        display: none;
        outline: none;

        &.show {
            display: block;
        }
    }

    .orin-sw-repopover-children {
        box-shadow: 0 1px 3px 1px rgba(0,0,0,.1);
        background-color: @white;
        overflow: hidden;
    }

    .orin-sw-repopover-triangle {
        display: block;
        width: 12 / @remScale;
        height: 12 / @remScale;
        left: 50%;
        margin-left: -6 / @remScale;
        position: absolute;
        top: 2 / @remScale;
        &.left {
            left: .5rem;
            right: auto;
            margin-left: 0;
        }
        &.right {
            right: .5rem;
            left: auto;
            margin-left: 0;
        }
        span {
            position: absolute;
            display: block;
            width: 12 / @remScale;
            height: 12 / @remScale;
            background-color: @white;
            border: 1px solid @borderColor;
            transform: rotate(45deg);
            border-right: transparent;
            border-bottom: transparent;
        }
    }
}
